﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Einstein.Utility
{
    public class FormatHelper
    {
        public static string FormatDate(DateTime? dt, string format = "yyyy-MM-dd")
        {
            if (dt.HasValue)
            {
                return dt.Value.ToString(format);
            }
            return string.Empty;
        }
    }
}
